package MyInfo;

import java.util.Scanner;

public class San1 {
    public static void main(String[] args) {
        int r;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请任意输入三个整数：");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        if (a>b){
            r=a;a=b;b=r;
    }
        if (a>c){
            r=a;a=c;c=r;
        }
        if (b>c){
            r=b;b=c;c=r;
        }
        System.out.println("这三个数从小到大依次是:"+a+"<"+b+"<"+c);
}}
